import http from '@/util/request'
// 计划详情--
export default {
  list: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/planStudentList.json`,
    name: '计划详情列表',
    get: async function (params) {
      const dataObj = await http.get(this.url, params)
      return dataObj
    }
  },
  select: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/selectList.json`,
    name: '计划展开列表（学生/教师）下拉框（年级班级或部门）',
    get: async function (params) {
      const dataObj = await http.get(this.url, params)
      return dataObj
    }
  },
  setAmount: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/batchSetAmount.json`,
    name: '批量设置金额',
    get: async function (params) {
      const dataObj = await http.get(this.url, params)
      return dataObj
    }
  },
  remind: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/reminderNotSubmitted.json`,
    name: '未填写提醒',
    post: async function (params) {
      const dataObj = await http.post(this.url, params)
      return dataObj
    }
  },
  upload: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/importChargeDetail.json`,
    name: '模板导入（上传）',
    post: async function (params) {
      const dataObj = await http.post(this.url, params)
      return dataObj
    }
  },
  downTemplate: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/exportPersonalizeTemplate.json`,
    name: '导出个性化收费模板',
    down: async function (params) {
      await http.down(this.url, params)
    }
  },
  downExcel: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/exportPlanDetail.json`,
    name: '导出计划明细',
    down: async function (params) {
      const dataObj = await http.down(this.url, params)
      return dataObj
    }
  },
  downReceiveExcel: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/exportReceivePlanDetail.json`,
    name: '导出我收到的计划明细',
    down: async function (params) {
      const dataObj = await http.down(this.url, params)
      return dataObj
    }
  },
  downBankExcel: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/export4Bank.json`,
    name: '导出银行用模板',
    down: async function (params) {
      const dataObj = await http.down(this.url, params)
      return dataObj
    }
  },
  setIsFree: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/setIsFree.json`,
    name: '设置不收费标识',
    post: async function (params) {
      const dataObj = await http.post(this.url, params)
      return dataObj
    }
  },
  editStu: {
    url: `${process.env.VUE_APP_API_URL}/FeeCollection/plan/batchSetAmount.json`,
    name: '编辑计划（学生）',
    post: async function (params) {
      const dataObj = await http.post(this.url, params)
      return dataObj
    }
  }
}
